<%@ page
	language="java"
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
    import="java.util.ArrayList"
    import="com.zen.twitter.TwitterData"
%>
<%@ taglib 
	prefix="c" 
	uri="http://java.sun.com/jsp/jstl/core"
%>
<%
	if (session.getAttribute("twitterList") != null) {
		ArrayList<TwitterData> twitterList = (ArrayList<TwitterData>) session.getAttribute("twitterList");
		int end = twitterList.size();
		System.out.println(end);
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>HomeTimeLine</title>
<style type="text/css">
	table #htl { 
		margin: auto;		
		border-collapse:collapse;
	}
	table #htl td { 
		border-bottom: 1px solid #gray;
		padding: 10px 5px 0px 10px; 
	}
</style>
</head>
<body>
<table id="htl" width="70%">
<c:forEach var="status" items="${twitterList }" begin="1" end="30">
<tr>
	<td>
	<img src="${status.imgUrl }" width="40" height="40" alt="" /><br>
  <a href="http://twitter.com/${status.scrName }" target="_blank" id="idName" class="name_off">${status.scrName }</a> (${status.usrName }) ${status.strCreate} via ${status.strSource}<br>
  ${status.contents}<br><br>
	</td>
</tr>

</c:forEach>
</table>

</body>
</html>